<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>数据字典</title>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <div id="pDiv" class="layui-col-md6">
            <!--父表格位置-->
            <table class="layui-hide" id="codeTable" lay-filter="test"></table>

            <script type="text/html" id="toolbarCode">
                <div class="layui-btn-container">

                    <button class="layui-btn layui-btn-sm" lay-event="addData">新增<i class="layui-icon layui-icon-add-1"></i></button>
                    <input type="text" id="codeName" name="levelName" autocomplete="off"
                           placeholder="输入等级名" class="layui-input layui-btn-sm">
                    <button class="layui-btn layui-btn-sm" lay-event="query">查询<i class="layui-icon layui-icon-search"></i></button>
                </div>
            </script>

            <script type="text/html" id="barCode">
                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            </script>
        </div>
        <div id="cDiv" class="layui-col-md6">
            <!--子表格位置-->
            <table class="layui-hide" id="codeChildTable" lay-filter="test"></table>

            <script type="text/html" id="toolbarCodeChild">
                <div class="layui-btn-container">

                    <button class="layui-btn layui-btn-sm" lay-event="addDataC">新增<i class="layui-icon layui-icon-add-1"></i></button>
                    <input type="text" id="codeChildName" name="codeChildName" autocomplete="off"
                           placeholder="输入等级名" class="layui-input layui-btn-sm">
                    <button class="layui-btn layui-btn-sm" lay-event="queryC">查询<i class="layui-icon layui-icon-search"></i></button>
                </div>
            </script>

            <script type="text/html" id="barCodeChild">
                <a class="layui-btn layui-btn-xs" lay-event="editC">编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delC">删除</a>
            </script>

        </div>
    </div>
</div>
</body>
<script th:inline="none" th:src="@{/common/js/code/code.js}"></script>
</html>